﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace BDSim
{
   public class NoiseServiceDLL
    {
       /// <summary>
        /// 随机误差计算函数
       /// </summary>
       /// <param name="pCalRan_Input"></param>
        /// <param name="Iran">模型开关标志，0表示不考虑，1表示白噪声</param>
        /// <returns>仿真得到的随机噪声值</returns>
       [DllImport("NoiseServiceDLL.dll", EntryPoint = "CalRan_output", CallingConvention = CallingConvention.Cdecl)]
       public static extern double CalRan_output(out CalRan_Input pCalRan_Input, int Iran);
    }
}
